package uk.co.revisual.creation {

	/**
	 * @author revisual.co.uk
	 * 
	 * factory method for object creation.
	 */
	public interface Creatable {
		/**
		 * the factory methof 
		 * @param data optional data
		 * @param asClass whether to return an instance or the Class ref
		 * @return the requested object
		 * 
		 */
		function create(data:Object=null, asClass:Boolean=false):Object;
	}
}
